package com.itcast.springboot.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 微信用户基本信息
 */
@ApiModel("用户")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @ApiModelProperty("用户id")
    private String uid;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("session")
    private String sessionKey;
    //微信头像
    @ApiModelProperty("微信头像")
    private String avatarUrl;
    @ApiModelProperty("性别")
    private Integer gender;
    @ApiModelProperty("国家")
    private String country;
    @ApiModelProperty("省份")
    private String province;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("语言")
    private String lang;
    @ApiModelProperty("用户动态")
    private List<UserDyna> userDynas;
    @ApiModelProperty("好友列表")
    private List<Friend> friends;

    public User(String uid, String username, String sessionKey, String avatarUrl, Integer gender, String country, String province, String city, String lang) {
        this.uid = uid;
        this.username = username;
        this.sessionKey = sessionKey;
        this.avatarUrl = avatarUrl;
        this.gender = gender;
        this.country = country;
        this.province = province;
        this.city = city;
        this.lang = lang;
    }
}
